using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SeataNet.Core.Common;

namespace SeataNet.Core.Model
{
    /// <summary>
    /// 分支事务注册响应
    /// </summary>
    public class BranchRegisterResponse
    {
        public long BranchId { get; set; }

        public TransactionStatus TransactionStatus { get; set; }

        public ResultCode ResultCode { get; set; }

        public string ErrorCode { get; set; } = string.Empty;

        public string ErrorMessage { get; set; } = string.Empty;

        public bool Success => ResultCode == ResultCode.Success;
    }
}